<!DOCTYPE html>
<html>
<#include "../../include/PC_Header.html">  
<body>
	<#assign nid="my_account"> 
	<#assign flag="setting">
	<#include "../../include/header.html">
	<!--#container-->
	<div class="qd_aboutus-top"><h3>您的位置：<a href="/">首页</a>&gt;<a>账户管理</a>&gt;<a href="/member/security/setting.html">账户设置</a></h3></div>
	<div class="pb30 pt20">
	<#include "../../include/member_borrow_header.html">
	<div id="container" class="clearfix" >
		<div class="usermain clearfix">
			<!--左边的导航 开始-->
			<div class="user_left">
            	<#assign mid="m_security" >
				<#include "../account_menu.html">
			</div>		
			<div class="user_right">
				<h2 class="user_title clearfix">基本信息</h2>
				<div class="pd30">
					<dl class="setting">
						<dt>
							<a class="user_face" title="修改头像">
								<img src="${image_server_url}/upload/readImg.html?<#if userCache.avatarPicPath??>path=${userCache.avatarPicPath}<#else>path=/default/xxxxxxx-xx</#if>" width="80" height="80" />	
								<!-- <span></span>
								<b>修改<br/>头像</b> -->
							</a>
							<div class="setting_status">
								<div class="setting_infobar">您的账号安全度${securityValue*100}%<strong>
								<#if securityValue==1>高<#elseif securityValue gt 0.6>中<#else>低</#if>
								</strong>
								</div>
								<div class="setting_statusbar"><span style="width:${securityValue*100}%;"></span></div>
								<#if securityValue!=1>
									<#if session_user_identify.mobilePhoneStatus != 1>
								   		<em>[<a href="javascript:void" id="gotoPhone">提升</a>]</em>
									<#elseif session_user_identify.emailStatus != 1>
									   	<em>[<a href="javascript:void" id="gotoMail">提升</a>]</em>
								   	<#elseif !payPwd?? || payPwd =="">
								   		<em>[<a href="javascript:void" id="gotoPayPwd">提升</a>]</em>
									</#if>
								</#if>
							</div>
						</dt>
						
						<!-- S 实名认证 -->
						<#if userCache.userNature == 1>
						<dd>
							<div class="settingbar clearfix">
								<i class="itemico iconfont">&#xe633;</i>
								<span class="itemtxt">
									实名认证
									<em>充值提现，必须完成实名认证</em>
								</span>
								<#if session_user_identify.realNameStatus == 0 || session_user_identify.realNameStatus == -1 || session_user_identify.tppMobilePhoneStatus?number == 0 || session_user_identify.tppMobilePhoneStatus?number == -1 >
									<#if session_user_identify.realNameStatus == 1>
										<span class="unrecognized"><i class="iconfont">&#xe60f;</i>未认证</span>
										<a href="/tpp/tppAction/realName.html?tppVerifyType=MOBILE" class="setting_btn" title="修改" id="modifyVerificationBtn2">认证</a>
									<#else>
										<span class="unrecognized"><i class="iconfont">&#xe60f;</i>未认证</span>
										<a href="javascript:;" class="setting_btn" title="修改" id="modifyVerificationBtn">认证</a>
									</#if>
								<#elseif session_user_identify.realNameStatus == 2>
									<span class="recognize"><i class="iconfont">&#xe62d;</i>认证审核中</span>
								<#else>
									<span class="recognized"><i class="iconfont">&#xe60e;</i>已认证</span>
									<!--<span>${session_user.realName!}&nbsp;&nbsp;${session_user.hideCardId!}</span>-->
								</#if>
							</div>
							<#if session_user_identify.realNameStatus == 0 || session_user_identify.realNameStatus == -1>
							<div class="setting_form" id="modifyVerificationBox" style="display:none;" >
								<form action="/tpp/tppAction/realName.html" method="post" autocomplete="off" id="modifyVerificationForm" >
											<p>由于实名认证与提现有关联，请确保<b>所用提现银行卡信息与实名认证信息一致</b></p>
									<ul class="setting_formbd">
										<li><label>真实姓名</label><input type="text"  name="realName" class="setting_txt" maxlength="20" placeholder="请输入真实姓名"/><span><em></em></span></li>
										<li><label>身份证号码</label><input type="text"  name="cardId" id="cardId" class="setting_txt" maxlength="18" placeholder="请输入二代身份证号码" /><span><em></em></span></li>
										<!-- <li><label>认证类型</label> --><input type="hidden" name="tppVerifyType" id="tppVerifyType" class="setting_txt" value="MOBILE"/><!-- <span><em>请输入认证类型</em></span></li> -->
										<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="确认" /></li>
									</ul>
								</form>
							</div>
							</#if>
							
						</dd>
						<!-- E 实名认证 -->
						
						<!-- S 企业开户 -->
							<#else>
								<dd>
									<div class="settingbar clearfix">
										<i class="itemico iconfont">&#xe633;</i>
								<span class="itemtxt">
									企业开户
									<em>发标还款，必须完成企业开户</em>
								</span>
										<#if !memberInfos?exists || memberInfos.status == 0 || memberInfos.status == 2>
											<span class="unrecognized"><i class="iconfont">&#xe60f;</i>未认证</span>
											<a href="javascript:;" class="setting_btn" title="修改" id="modifyVerificationBtn">开户</a>
											<#elseif memberInfos.status == 99>
												<span class="recognize"><i class="iconfont">&#xe62d;</i>审核中</span>
												<#else>
													<span class="recognized"><i class="iconfont">&#xe60e;</i>已开户</span>
													<span>${session_user.realName!}&nbsp;&nbsp;${session_user.hideCardId!}</span>
										</#if>
									</div>
									<#if !memberInfos?exists || memberInfos.status == 0 || memberInfos.status == 2>
										<div class="setting_form" id="modifyVerificationBox" style="display:none;" >
											<form action="/tpp/tppAction/auditMemberInfos.html" method="post" autocomplete="off" id="modifyVerificationForm" >
												<input value="${web_url}/tpp/tppAction/auditMemberCallBack.html" name="returnUrl" type="hidden" /> 
<!-- 												<input value="http://hzwh0902.vicp.net/tpp/tppAction/auditMemberCallBack.html" name="returnUrl" type="hidden" /> -->
												<#if memberInfos?exists && memberInfos.status == 2>
													<p><b>第三方审核结果：不通过；建议：${memberInfos.auditMessage!"无"}</b></p>
												<#else>
													<p><b>请输入真实企业相关信息，以便审核通过</b></p>
												</#if>
									<ul class="setting_formbd">
											<#if memberInfos?exists>
										<li><label>企业邮箱</label><input type="text" name="email" id="bf_account" class="setting_txt2" maxlength="30" value="${memberInfos.email!}" /><span></span></li>
										<li><label>法人姓名</label><input type="text" name="legalPerson" id="name" class="setting_txt2" maxlength="100" value="${memberInfos.legalPerson!}" /><span></span></li>
										<li><label>法人身份证号</label><input type="text" name="certNo" id="id_card" class="setting_txt2" maxlength="200" value="${memberInfos.certNo!}" /><span></span></li>
										<li><label>企业名称</label><input type="text" name="companyName" id="enterprise_name" class="setting_txt2" maxlength="50" value="${memberInfos.companyName!}" /><span></span></li>
										<li><label>营业执照注册号</label><input type="text" name="licenseNo" id="license" class="setting_txt2" maxlength="200" value="${memberInfos.licenseNo!}" /><span></span></li>
										<li><label>法人手机号码</label><input type="text" name="legalPersonPhone" id="mobile" class="setting_txt2" maxlength="50" value="${memberInfos.legalPersonPhone!}" /><span></span></li>
										<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="确认" /></li>
										</#if>
									</ul>
								</form>
							</div>
							</#if>
							
						</dd>
						</#if>
						<!-- E 企业开户 -->
						
						 <!-- S 绑定认证信息  -->
						<#--
						<dd>
							<div class="settingbar clearfix">
								<i class="itemico iconfont">&#xe633;</i>
								<span class="itemtxt">
									绑定认证信息
									<em>开通存钱罐模式，必须完成绑定认证信息</em>
								</span>
								<#if session_user_identify.tppMobilePhoneStatus?number == 0 || session_user_identify.tppMobilePhoneStatus?number == -1>
									<span class="unrecognized"><i class="iconfont">&#xe60f;</i>未绑定</span>
									<a href="javascript:;" class="setting_btn" title="修改" id="modifyVerificationBtn">绑定</a>
								<#elseif session_user_identify.tppMobilePhoneStatus?number == 2>
									<span class="recognize"><i class="iconfont">&#xe62d;</i>绑定审核中</span>
								<#else>
									<span class="recognized"><i class="iconfont">&#xe60e;</i>已绑定</span>
									<span><#if session_user_identify??&&session_user_identify.tppVerifyType! == "MOBILE">手机<#elseif session_user_identify.tppVerifyType! == "EMAIL">邮箱<#else>其他</#if>&nbsp;&nbsp;${session_user.tppMobilePhone!}</span>
								</#if>
							</div>
							<#if session_user_identify.tppMobilePhoneStatus?number == 0 || session_user_identify.tppMobilePhoneStatus?number == -1>
							<div class="setting_form" id="modifyVerificationBox" style="display:none;" >
								<form action="/tpp/tppSinaAction/bindingVerify.html" method="post" autocomplete="off" id="modifyVerificationForm" >
									<ul class="setting_formbd">
										 <li><label>认证类型</label><input type="hidden" name="tppVerifyType" id="tppVerifyType" class="setting_txt" value="MOBILE"/> <span><em>请输入认证类型</em></span></li>
										<li><label>绑定手机号</label><input type="text" name="tppMobilePhone" id="mobilePhone" class="setting_txt" size="25" maxlength="11" onkeyup="replaceAndSetPos(this,/[^\d]/g,'')" value=""/><span><em>请输入手机号</em></span></li>
										<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="确认" /></li>
									</ul>
								</form>
							</div>
							</#if>

						</dd>
						-->
						<!-- E 绑定认证信息 -->
						
						<!-- S 绑定邮箱 -->
						<dd>
							<div class="settingbar clearfix">
								<i class="itemico iconfont">&#xe627;</i>
								<span class="itemtxt">
									绑定邮箱
									<em>找回密码，接收最新消息</em>
								</span>	
								<#if session_user_identify.emailStatus == 0>	
									<span class="unrecognized"><i class="iconfont">&#xe60f;</i>未绑定</span>
									<a href="javascript:;" class="setting_btn" title="绑定" id="modifyEmailBtn">绑定</a>
								<#else>
									<span class="recognized"><i class="iconfont">&#xe60e;</i>已绑定</span>
									<span>${session_user.hideEmail!}</span>
									<a href="javascript:;" class="setting_btn" title="修改" id="modifyEmailBtn">修改</a>
								</#if>	
							</div>
							<div class="setting_form" id="modifyEmailBox" style="display:none;" >
								<#if session_user_identify.emailStatus == 0>
									<form action="/member/security/doBindEmail.html" method="post" autocomplete="off" id="modifyEmailForm" >
										<ul class="setting_formbd" >
											<li><label>邮箱地址</label><input type="text" name="email" id="email" class="setting_txt" autocomplete="off" placeholder="请输入您的邮箱地址"/><span><em></em></span></li>
											<li><label>验证码</label><input type="text" name="code" class="setting_vtxt" maxlength="6" autocomplete="off" placeholder="请输入验证码"/><input type="button" class="setting_vcode" id="getNewMailVcode" value="发送验证邮件" /><span><em></em></span></li>
											<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="确认" /></li>
										</ul>
									</form>
								<#else>
									<form action="/member/security/checkModifyEmailCode.html" method="post" autocomplete="off" id="mailValidata">
										<ul class="setting_formbd">
											<li><label>已验证邮箱</label><span id="userMail">${session_user.hideEmail!}</span></li>
											<li><label>验证码</label><input type="text" name="code" class="setting_vtxt"  maxlength="6"  autocomplete="off" placeholder="请输入验证码"/><input type="button" class="setting_vcode" id="getMailVcode" value="发送验证邮件" /><span><em></em></span></li>
											<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="下一步" /></li>
										</ul>
									</form>
									<form action="/member/security/doBindEmail.html" method="post" autocomplete="off" id="modifyEmailForm" style="display:none;">
										<ul class="setting_formbd" >
											<li><label>填写新邮箱</label><input type="text" name="email" id="email" class="setting_txt" value="" autocomplete="off" placeholder="请输入新邮箱"/><span><em></em></span></li>
											<li><label>验证码</label><input type="text" name="code" class="setting_vtxt" maxlength="6" autocomplete="off" onKeyUp="replaceAndSetPos(this,/[^0-9.]/g,'').trim();" placeholder="请输入验证码"/><input type="button" class="setting_vcode" id="getNewMailVcode" value="发送验证邮件" /><span><em></em></span></li>
											<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="确认" /></li>
										</ul>
									</form>
								</#if>
							</div>
						</dd>
						<!-- E 绑定邮箱 -->
						<!-- S 绑定手机 -->
						<dd>
							<div class="settingbar clearfix">
								<i class="itemico iconfont">&#xe626;</i>
								<span class="itemtxt">
									绑定手机
									<em>账户资金变动，实时通知</em>
								</span>
								<#if session_user_identify.mobilePhoneStatus == 0>
									<span class="unrecognized"><i class="iconfont">&#xe60f;</i>未绑定</span>		
									<a href="javascript:;" class="setting_btn" title="绑定" id="modifyPhoneBtn">绑定</a>
								<#else>
									<span class="recognized"><i class="iconfont">&#xe60e;</i>已绑定</span>
									<span>${session_user.hideMobilePhone!}</span>
									
								</#if>
							</div>
							<div class="setting_form" id="modifyPhoneBox" style="display:none;" >
								<#if session_user_identify.mobilePhoneStatus == 0>	
									<form action="/member/security/doBindPhone.html" autocomplete="off" method="post" id="modifyPhoneForm">
										<ul class="setting_formbd">
											<li><label>手机号码</label><input type="text" name="mobilePhone" id="mobilePhone" class="setting_txt"  onKeyUp="replaceAndSetPos(this,/[^0-9.]/g,'').trim();" autocomplete="off" maxlength="11" placeholder="请输入手机号码"/><span><em></em></span></li>
											<li><label>验证码</label><input type="text" name="code" class="setting_vtxt"  autocomplete="off" onKeyUp="replaceAndSetPos(this,/[^0-9.]/g,'').trim();" placeholder="请输入验证码"/><input type="button" class="setting_vcode" id="getPhoneVcode" value="获取验证码" /><span><em></em></span></li>
											<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="确认" /></li>
										</ul>
									</form>
								<#else>
								<form action="/member/security/checkModifyPhoneCode.html" autocomplete="off" method="post" id="mobilePhoneValidata">
									<ul class="setting_formbd">
										<li><label>已验证手机</label><span id="userMobilePhone">${session_user.hideMobilePhone!}</span></li>
										<li><label>验证码</label><input type="text" name="code" class="setting_vtxt" maxlength="6" autocomplete="off" onKeyUp="replaceAndSetPos(this,/[^0-9.]/g,'').trim();" placeholder="请输入验证码"/><input type="button" class="setting_vcode" id="getHavePhoneVcode" value="获取验证码" /><span><em></em></span></li>
										<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="下一步" /></li>
									</ul>
								</form>
								<form action="/member/security/doBindPhone.html" autocomplete="off" method="post" id="modifyPhoneForm1" style="display:none;">
									<ul class="setting_formbd">
										<li><label>手机号码</label><input type="text" name="mobilePhone" id="mobilePhone" class="setting_txt" onKeyUp="replaceAndSetPos(this,/[^0-9.]/g,'').trim();" autocomplete="off" placeholder="请输入手机号码"/><span><em></em></span></li>
										<li><label>验证码</label><input type="text" name="code" class="setting_vtxt" maxlength="6"  autocomplete="off" onKeyUp="replaceAndSetPos(this,/[^0-9.]/g,'').trim();" placeholder="请输入验证码"/><input type="button" class="setting_vcode" id="getPhoneVcode" value="获取验证码" /><span><em></em></span></li>
										<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="确认" /></li>
									</ul>
								</form>
								</#if>
							</div>
						</dd>
						<!-- E 绑定手机 -->
						<!-- S 修改登录密码 -->
						<dd>
							<div class="settingbar clearfix">
								<i class="itemico iconfont">&#xe617;</i>
								<span class="itemtxt">
									登录密码
									<em>登录时需要输入的密码</em>
								</span>
								<span class="recognized"><i class="iconfont">&#xe60e;</i>已设置</span>								
								<a href="javascript:;" class="setting_btn" title="修改" id="modifyPwdBtn">修改</a>	
							</div>
							<div class="setting_form" id="modifyPwdBox" style="display:none;" >
								<form action="/member/security/modifyPwd.html" autocomplete="off" method="post" id="modifyPwdForm">
									<ul class="setting_formbd">
										<li><label>原密码</label><input type="password" name="pwd" id="oldpassword" class="setting_txt" placeholder="请输入原密码"  autocomplete="off"/><span><em></em></span></li>
										<li><label>新密码</label><input type="password" name="newPwd" id="password" class="setting_txt" placeholder="请输入新的登录密码"/><span><em>不少于8位，至少包含一个字母和一个数字。</em></span></li>
										<li><label>确认新密码</label><input type="password" name="confirmNewPwd" id="confirm_password" class="setting_txt" placeholder="再次输入新密码"/><span><em></em></span></li>
										<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="确认" /></li>
									</ul>
								</form>
							</div>
						</dd>
						<!-- E 修改登录密码 -->
						<!-- S 修改交易密码 -->
						<dd>
							<div class="settingbar clearfix">
								<i class="itemico iconfont">&#xe618;</i>
								<span class="itemtxt">
									交易密码
									<em>账户资金变动，修改账户信息时需要输入的密码</em>
								</span>
								<#if payPwd?? && payPwd !="">
									<span class="recognized"><i class="iconfont">&#xe60e;</i>已设置</span>
									<a href="javascript:;" class="setting_btn" title="修改" id="modifyPayPwdBtn">修改</a>									
								<#else>
									<span class="unrecognized"><i class="iconfont">&#xe60f;</i>未设置</span>
									<a href="javascript:;" class="setting_btn" title="设置" id="modifyPayPwdBtn">设置</a>
								</#if>
							</div>
							
							<div class="setting_form" id="modifyPayPwdBox" style="display:none;">
								<#if session_user_identify.mobilePhoneStatus == 0>
									<div class="noBindPhone">
										<i class="iconfont">&#xe60f;</i>请先绑定手机<br/><a href="javascript:;" id="bindPhone">马上绑定</a>
									</div>
								<#else>
								<form action="/member/security/modifyPaypwd.html" autocomplete="off" method="post" id="modifyPayPwdForm">
									<ul class="setting_formbd">
										<#if payPwd?? && payPwd !="">
										<li><label>原交易密码</label><input type="password" name="payPwd" id="oldpassword" class="setting_txt" placeholder="请输入原交易密码" autocomplete="off"/><span><a href="javascript:;" id="forgetPayPwd">忘记交易密码</a></span></li>
										</#if>
										<li><label>新交易密码</label><input type="password" name="newPayPwd" id="pay_password" class="setting_txt" placeholder="请输入新的交易密码" /><span>不少于8位,至少包含一个字母和一个数字</span></li>
										<li><label>确认新密码</label><input type="password" name="confirmNewPayPwd" id="pay_confirm_password" class="setting_txt" placeholder="再次输入交易密码"/><span></span></li>
										<li><label>&nbsp;</label><input type="hidden" name="actionType" value="chgpwd" size="30" /><input type="submit" class="setting_sub_btn" value="确认" /></li>
									</ul>															
								</form>
								<form action="/member/security/resetPaypwd.html" method="post" id="getCodeForpayPwd" autocomplete="off" style="display:none;">
									<ul class="setting_formbd">
										<li><label>已绑定手机号</label><span id="payPwdPhoneNo">${session_user.hideMobilePhone!}</span></li>
										<li><label>验证码</label><input type="text" name="code" class="setting_vtxt" maxlength="6" placeholder="请输入验证码"/><input type="button" class="setting_vcode" id="getPaypwdCode" value="获取验证码" /><span><em></em></span></li>
										<li><label>新交易密码</label><input type="password" name="newPayPwd" id="newPayPwd" class="setting_txt" placeholder="请输入新的交易密码" /><span>不少于8位,至少包含一个字母和一个数字</span></li>
										<li><label>确认新密码</label><input type="password" name="confirmNewPayPwd" id="confirmNewPayPwd" class="setting_txt" placeholder="再次输入新密码" /><span></span></li>
										<li><label>&nbsp;</label><input type="submit" class="setting_sub_btn" value="确定" /></li>
									</ul>
								</form>
								</#if>
							</div>	
						</dd>
						<!-- E 修改交易密码 -->	
					</dl>

				</div>

			</div>
		</div>
	</div>
	</div>
	<!--用户中心的主栏目 结束-->
	<#include "../../include/PC_Footer_Additional_JS.html">
	<script>seajs.use('member_borrow/security_setting');</script>
	<script src="/plugins/laydate-v1.1/laydate.js"></script>
	<script src="/themes/theme_default/media/js/date.js"></script>
	<#include "../../include/footer.html">
</body>
</html>
